<?php
namespace Admin\Model;
use Think\Model\ViewModel;
class FoodViewModel extends ViewModel{
	public $viewFields = array(
			'Food'=>array('id','food_name','type','introduce','food_image','food_tag','ctime','_type'=>'LEFT'),
			'FoodCategory'=>array('price','unit','_on'=>'Food.id=FoodCategory.fid'),
	);
	protected $_auto = array(
		array('ctime','time',self::MODEL_INSERT,'function'),
	);
}